 package com.model;

import com.jfinal.plugin.activerecord.Model;
import com.jfinal.plugin.activerecord.Page;

public class PaperKeyTime extends Model<PaperKeyTime>{
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	public static PaperKeyTime dao=new PaperKeyTime();
	
	/**
	 * 查找某系的重要论文时间
	 */
	public Page<PaperKeyTime> selectTime(int pageNumber, int pageSize,int stuId)
	{
		System.out.println("学生id:"+stuId);
		int secId=Student.dao.selectStu_DepSecId(stuId);
		System.out.println("教学秘书id："+secId);
		return paginate(pageNumber, pageSize, "select *", "from paperkeytime where paperkeytime.keytime_issueman = "+secId+" order by keytime_id asc");
	}
}
